<template>
	<view>
		<view class="info">
			<view class="header">
				<uni-icons type="person" size="60" color="#fff"></uni-icons>
			</view>
			<view class="name">老吴</view>
		</view>
		<uni-list>
			<uni-list-item showArrow>
				<template v-slot:body>
					<view>
						<text class="list-item">书城</text>
					</view>
				</template>
			</uni-list-item>
			<uni-list-item showArrow>
				<template v-slot:body>
					<view>
						<text class="list-item">收藏</text>
					</view>
				</template>
			</uni-list-item>
			<uni-list-item showArrow>
				<template v-slot:body>
					<view>
						<text class="list-item">设置</text>
					</view>
				</template>
			</uni-list-item>
		</uni-list>
		<button class="login-btn" @click="handleLogout">退出</button>
	</view>
</template>

<script>
	
	export default {
		data() {
			return {
				userInfo: {}
			}
		},
		created() {
			this.getUserInfo()
		},
		methods: {
			async getUserInfo() {

			},
			async handleLogout() {

			}
		}
	}
</script>

<style lang="scss" scoped>
	.list-item{
		font-size: 30rpx;
	}
	.info {
		width: 100%;
		background-color: rgba(102, 110, 232, 0.1);
		height: 300rpx;
		border-radius: 0 0 60rpx 60rpx;
		padding-top: 40rpx;
		box-sizing: border-box;
		margin-bottom: 30rpx;

		.header {
			background-color: #666ee8;
			border-radius: 50%;
			height: 160rpx;
			width: 160rpx;
			display: flex;
			justify-content: center;
			align-items: center;
			margin: auto;
		}

		.name {
			width: 100%;
			text-align: center;
			font-size: 34rpx;
			margin-top: 20rpx;
			color: #666ee8;
		}
	}

	.login-btn {
		width: 660rpx;
		margin: 300rpx auto 0;
		color: #666ee8;
		border: 1px solid #ddd;
		background: none;
	}
</style>